import Mock from "mockjs";

const top = [
  {
    label: "工资表",
    path: "/wages/wages",
    icon: "el-icon-menu",
    meta: {
      i18n: "dashboard",
    },
    parentId: 0,
  },
  {
    label: "3akx官网",
    icon: "el-icon-document",
    meta: {
      i18n: "website",
    },
    path: "https://3akx.cn/#/",
    parentId: 1,
  },
  {
    label: "avuex官网",
    icon: "el-icon-document",
    meta: {
      i18n: "avuexwebsite",
    },
    path: "https://avuex.avue.top",
    parentId: 2,
  },
  {
    label: "测试",
    icon: "el-icon-document",
    path: "/test/index",
    meta: {
      i18n: "test",
    },
    parentId: 3,
  },
];
export default ({ mock }) => {
  if (!mock) return;
  Mock.mock("/user/getTopMenu", "get", () => {
    return {
      data: top,
    };
  });
};
